-
Couldn't load subscription status.
- Fork 5
Test framework #32
Test framework #32
Conversation
* added sfield constants * added mock_data, data is read from json file. Hashes and AccountIDs fields are decoded to binary when requested by host functions to match ripples. * added Locator string * refactored main and vm * some basic tests done, more tests are needed
* Add trace host function * Update build to support WASM panic handler * Add supporting layer for errors * Update `xrpl_std_example` to emit text and numeric data * Add helper build scripts
…dd-trace # Conflicts: # projects/xrpl_std_example/src/lib.rs # wasm-host/src/host_functions.rs # wasm-host/src/main.rs # wasm-host/src/vm.rs # xrpl-std/src/lib.rs
* added sfield constants * added mock_data, data is read from json file. Hashes and AccountIDs fields are decoded to binary when requested by host functions to match ripples. * added Locator string * refactored main and vm * some basic tests done, more tests are needed
* added sfield constants * added mock_data, data is read from json file. Hashes and AccountIDs fields are decoded to binary when requested by host functions to match ripples. * added Locator string * refactored main and vm * some basic tests done, more tests are needed
example command: craft build --project host_functions_test --release --opt-level z
|
You can now build the host_functions_test like this: |
e.g. run test with: craft test --project host_functions_test --test-case host_functions_test
|
This is getting big. I'd like to merge it into I recommend using Merge commits so that we don't have to rebase commits which are present in multiple branches. |
Resolved merge conflicts MockData uses SField_To_Name for field name retrieval
* update to latest JS beta
Resolved conflicts Updated package.json to use xrpl version 4.3.0-smartescrow.3 and ripple-binary-codec version 2.4.0-smartescrow.2
When running tests, look for the following to see that the tests actually passed: WASM TRACE: SUCCESS: All host function tests passed! also, look to see: Result: true Here is an example test command: craft test --project host_functions_test --test-case success
Fix merge conflicts in `df/struct-types`
…work Resolve merge conflicts Consolidate decode function implementations
|
Any objection to getting |
No objection. Go for it! |
|
#37 has been merged. Looks like this branch needs to be updated/rebased. |
|
This PR is no longer in-scope. Please see https://github.com/ripple/xrpl-wasm-std for now and feel free to re-open a PR like this one in that project, if appropriate (we may revisit a CLI in the future, but for now are continuing work on the XRPL WASM standard library in that project). |
example of how to run test:
This builds on:
xrpl_std_example#26